import { lazy, Suspense } from 'react'
import ReactDOM from 'react-dom/client'
import { RouterProvider } from 'react-router-dom'
import './main.scss'
import router from './router'
// 懒加载
const Login = lazy(() => import('./pages/login/Login'))
const Index = lazy(() => import('./pages/index/Index'))
ReactDOM.createRoot(document.getElementById('root')).render(
  <div className="root-containt">
    <Suspense>
      <RouterProvider router={router}></RouterProvider>
    </Suspense>
  </div>
)
